<table width="100%">
	<?php echo CHtml::beginForm($target, 'get',
		array('id'=>'folder-nav')); ?>
	<tr>
		<td>
			<?php
			echo CHtml::label($label, 'path');
			?>
		</td>
		<td width="100%">
			<?php
			$root = new Folder(Yii::app()->params['file'] . "/$type");
			$data = $root->listData();
			$htmlOptions = array(
				'encode'=>false,
				'prompt'=>'Root',
				'class'=>'fill',
			);
			echo CHtml::dropDownList('path', $path, $data, $htmlOptions)
			?>

		</td>
		<td>
			<?php echo CHtml::submitButton('Go'); ?>
		</td>
	</tr>
	<?php echo CHtml::endForm(); ?>
</table>

<?php
Yii::app()->clientScript->registerScript(
	'pathChange',
	"
    $(\"#path\").change(
        function() {
            $(\"#folder-nav\").submit();
        }
    );
    "
);
?>